﻿module Sustainalytics.Common {

    export interface ICommonFactory {
        getReportTypes: () => any;
    }

    angular.module('shell').factory('commonFactory', ['$http', 'staticObjects', ($http, staticObjects: Common.IStaticObjects) => {
        var urlBase = staticObjects.apiBaseUrl + 'common';
        return {
            getReportTypes: () => $http.get(urlBase)
        };
    }]);
}